import { createMachine } from "xstate";

export const machine = createMachine(
  {
    /** @xstate-layout N4IgpgJg5mDOIC5QBtIH0CWB7NBjLAdgC4BOWyAdIJSaguyGBOQYPYOgHHqB1cgMSBuioGtygbU6CABgG0ADAF1EoAA5ZYGItgLiQAD0QA2IRSFatARgDMOoQE4dqgBw6ArABoQAT0QAmACwB2Cqs+rXroY9cGOjoAvsG2qBCYOPjEZJS0jKxsgFeBgBVKgIRWgPD6gFj-gCVygIXewmJIIFIycoSKKgiOjhpGDQ2uOr7OVnp6tg4I+kYUjUZmls3mfs5moeHo2HiEpOTU9MzsaVnZgOIJgDlpRYplsvJVTnX9A82t7Z32iDqDFM6NZv5mbeNGepMgEVGzsQsJy2xANJGGUyOxKewqChK1Vq9VOLSEbUsHS6iAsdweZlU92clnUzg+XxmMXm8SWSVWOUAMhGAB1iwZJpPtKtCjnDGmdERdUTVhpptH5tDc9BMwp9ptE5nFFol2IAgfSY9NKjMhhxqxwGRg5SJRVwQBksGIGQm8lmcflCooIWAgcEURIlv2Qu2VBxZCAAtDpue7VHz+f7dATRfafqTpctneVXaBqm5uXohHoKKZPEZVC4OpZLEZCeLQ1LAEV+dCYgHnEyNMqExxDCvr8oLZoSWLSObk3MwnBqPVzPHSvd7BvMkqWAEbyI+CXcyq3qzLXBVYjI3m62zYbBsNTGYxiKppFiZKFoB-vzHDKjk+U1ZnfqE9YXTb83PRAzMWJxeMRud3DrDR8AV6mAQYdyxVN0ayvG9F3vXVHF5e4mjXXsjGRVwP2+IcFgLBh-0A6Nz2nWddHncCW11fUO0aY1XFNc0LSAA */
    id: "led_io_control",
    context: {},
    description: "- 蓝海叉车LED IO控制  \n - 文件路径:AgvHardware/light/aizhiweilightcontrol \n - 上位机控制对象: agvhardware \n - 控制方法：\n \t - setLighState(AiZhiWeiLightControl::LIGHTState) \n \t - getX0() \n \t - getX1() \n \t - getX2() \n \t - getX3()",
    initial: "天蓝色灯常亮",
    states: {
      天蓝色灯常亮: {
        on: {
          "其他状态": "天蓝色灯常亮",
          "自动模式：交管": "黄灯常亮",
          "自动模式：遇障": "红色常量",
          "手动模式": "绿灯常亮",
          "自动模式：行走": "绿灯闪烁",
          "异常": "红灯闪烁"
        }
      },
      红色常量:{},
      黄灯常亮:{},
      绿灯常亮:{},
      绿灯闪烁:{},
      红灯闪烁:{},
    }
  },
  );

